#!/usr/bin/env python

from os.path import pardir
from distutils.core import setup, Extension

setup(name='pysl',
      version='@PACKAGE_VERSION@',
      author='Christopher J. Stawarz',
      author_email='chris@pseudogreen.org',
      url='http://software.pseudogreen.org/pysl/',
      description='Use S-Lang from Python (and vice versa)',
      packages=['pysl'],
      ext_modules=[Extension('pysl._pysl', ['src/_pyslmodule.c'],
                             define_macros=[('PACKAGE_VERSION',
                                             '"@PACKAGE_VERSION@"')],
                             libraries=['pysl', 'slang'],
                             depends=[pardir + '/libpysl/libpysl.h',
                                      pardir + '/libpysl/libpysl.c'])],
     )
